/* $Id: file_list_count.c,v 1.2 2003/10/18 10:24:10 sby Exp $ */

#include <stdio.h>
#include <fcntl.h>

int
file_list_count(char *fname)
{
   FILE *fp;
   int count = 0;
   char buf[200];

   if ((fp = fopen(fname, "r")) != NULL)
   {
      while(fgets(buf,200,fp)) count++;

      fclose(fp);
   }
   return count;
}
